<?php

echo '<ul id="boutton">
      <li class="bouton_gauche">
	  <form>';

	  //24 heures anti up

      $query24heures = $pdo->prepare("SELECT forum_membre_id,post_time,forum_topic.topic_locked as topic_locked FROM forum_post JOIN forum_topic ON forum_topic.topic_id=forum_post.topic_id WHERE forum_post.topic_id=? ORDER BY post_id DESC LIMIT 1");

	  $query24heures->execute(array($_REQUEST["tid"]));

      $antiup = $query24heures->fetch();

	  if($infoTopic['topic_locked']<1 && ($antiup['forum_membre_id']==$_SESSION['id'] && (($antiup['post_time']+(60*60)*24)<time()) || id2level() >= MODO))
	  {

      // r�pondre sujet

echo '<input id="newButton" type="button" value="r&eacute;pondre au sujet" onclick="GoToUrl(\'http://'.$_SERVER['SERVER_NAME'].(getLienModule($_GET["m"],"repondre") .'?type=message&fid='.$_GET['fid'].'&tid='.$_GET['tid'].'&num='.$_GET['num']).'\');
      this.parentNode.removeChild(document.getElementById(\'newButton\'));"/>';
	  }

echo '</form>
</li>
		 <li class="bouton_droite">pagination haut</li>
		 </ul>';
?> 
